﻿@using HPIT.RentHouse.DTO
@{
    string userName = "未登录";
    string roleName = "";
    MyFormsPrincipal<LoginAdminDTO> user = Context.User as MyFormsPrincipal<LoginAdminDTO>;
    if (user != null)
    {
        userName = user.UserData.Name;
        roleName = user.UserData.RoleName;
    }
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico" tppabs="http://demo.h-ui.net/H-ui.admin.page/favicon.ico" />

    <link href="~/Content/h-ui/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="~/Content/h-ui/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" />
    <link href="~/Content/h-ui/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <link href="~/Content/h-ui/static/h-ui.admin/skin/default/skin.css" rel="stylesheet" />
    <link href="~/Content/h-ui/static/h-ui.admin/css/style.css" rel="stylesheet" />
    <title>掌上租租赁平台</title>
</head>
<body>
    <!--_header 作为公共模版分离出去-->
    <header class="navbar-wrapper">
        <div class="navbar navbar-fixed-top">
            <div class="container-fluid cl">
                <a class="logo navbar-logo f-l mr-10 hidden-xs" href="@Url.Action("Index","Home")">掌上租后台管理系统</a>
                <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="@Url.Action("Index","Home")">掌上租</a>
                <span class="logo navbar-slogan f-l mr-10 hidden-xs">v1.0</span>
                <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>

                <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                    <ul class="cl">
                        <li>@roleName</li>
                        <li class="dropDown dropDown_hover">
                            <a href="#" class="dropDown_A">@userName<i class="Hui-iconfont">&#xe6d5;</i></a>
                            <ul class="dropDown-menu menu radius box-shadow">
                                <li><a href="@Url.Action("Logout","Home")">退出</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <!--/_header 作为公共模版分离出去-->
    <!--_menu 作为公共模版分离出去-->
    <aside class="Hui-aside">

        <div class="menu_dropdown bk_2">
            <dl id="menu-house">
                <dt>
                    <i class="Hui-iconfont">&#xe616;</i> 房源管理
                    <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd>
                    <ul>
                        <li id="whole">
                            <a href="@Url.Action("Index","House")?typeId=12" title="整租管理">整租管理</a>
                        </li>
                        <li id="sharing">
                            <a href="@Url.Action("Index","House")?typeId=11" title="合租管理">合租管理</a>
                        </li>
                        <li id="short">
                            <a href="@Url.Action("Index","House")?typeId=18" title="短租管理">短租管理</a>
                        </li>
                    </ul>
                </dd>
            </dl>

            <dl id="menu-product">
                <dt>
                    <i class="Hui-iconfont">&#xe620;</i> 租房预约管理
                    <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd>
                    <ul>
                        <li id="appointment">
                            <a href="@Url.Action("Index","HouseAppointment")" title="预约订单管理">预约订单管理</a>
                        </li>
                    </ul>
                </dd>
            </dl>

            <dl id="menu-system">
                <dt>
                    <i class="Hui-iconfont">&#xe62e;</i> 系统管理
                    <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                </dt>
                <dd>
                    <ul>
                        <li id="role">
                            <a href="@Url.Action("Index","Roles")" title="角色管理">角色管理</a>
                        </li>
                        <li id="permission">
                            <a href="@Url.Action("Index","Permissions")" title="权限管理">权限管理</a>
                        </li>
                        <li id="admin">
                            <a href="@Url.Action("Index","AdminUsers")" title="用户管理">管理员列表</a>
                        </li>
                    </ul>
                </dd>
            </dl>
        </div>
    </aside>
    <div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
    <!--/_menu 作为公共模版分离出去-->

    @RenderBody()


    <!--_footer 作为公共模版分离出去-->
    <script src="~/Content/h-ui/lib/jquery/1.9.1/jquery.min.js"></script>
    <script src="~/Content/h-ui/lib/layer/2.4/layer.js"></script>
    <script src="~/Content/h-ui/static/h-ui/js/H-ui.js"></script>
    <script src="~/Content/h-ui/static/h-ui.admin/js/H-ui.admin.page.js"></script>

    <script src="~/Content/h-ui/lib/datatables/1.10.15/jquery.dataTables.min.js"></script>
    <script src="~/Content/h-ui/lib/laypage/1.2/laypage.js"></script>

    <!--动态事件绑定插件-->
    <!--通过jQuery选择器选择一个DOM元素，livequery插件会实时地在整个DOM范围将其持久化。这意味着无论元素是先前存在的还是后来动态加载的，事件都会被绑定，就像是CSS给元素添加样式一样-->
    <script src="~/Content/h-ui/lib/jquery.livequery.js"></script>

    <!--/_footer /作为公共模版分离出去-->

    @RenderSection("footScript", false)
</body>
</html>
